from logging.handlers import TimedRotatingFileHandler
import logging.config, logging
from w_perform import Info_start
from w_obtain import refresh_time, Info_channel, Info_page

import os

Info_start_cl = Info_start()

log_dir = "./log"
if os.path.exists(log_dir) == False:
    os.mkdir(log_dir)
#公共对象
logging.config.fileConfig("logging.conf")


if __name__ == '__main__':
    refresh_start = refresh_time()
    refresh_start.start()

    channel_start = Info_channel()
    channel_start.start()

    page_start = Info_page(Info_start_cl)
    page_start.start()

    Info_start_cl.worker_start()
    Info_start_cl.start()



    #同步数据
    # refresh_start = refresh_time()
    # channel_start = Info_channel()
    # page_start = Info_page(Info_start_cl)
    # page_start.Hour_sync()
    # Info_start_cl.worker_start()
